package com.chen.back.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.chen.back.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chen
 * @since 2022-02-24
 */
public interface RoleMapper extends BaseMapper<Role> {
    Set<String> selectAllRoleNamesByUsername(String username);

    Integer getRoleIDBYRoleName(String roleName );

    List<Integer> getAllPermissionIdByRoleId(Integer roleId);

}
